<?php

/*
 *Gneceral widget
 */

class TWidget extends CWidget{
    
    public function init() {
        parent::init();
    }
    
    public function run() {
        parent::run();        
    }
    
    public function wdconvert_date($date, $type = 1){
            if($date != ''){
                $date = explode('-', $date);
                return $type == 1 ? $date[2].'-'.$date[1].'-'.$date[0] : $date[0].'-'.$date[1].'-'.$date[2] ;
            }
    }    
}

?>
